package com.bjsxt;
/**电话本项目*/
public class App01 {
    //控制主菜单
    public void start(){
        Menu01 menu01 = new Menu01();
        TelNoteRegex01 telNoteRegex01 = new TelNoteRegex01();
        Operate01 operate01 = new Operate01();
        while (true){
            menu01.mainMenu();
            int item = telNoteRegex01.menuItemValidate(1,6);
            switch (item){
                case 1:operate01.addLogic();break;
                case 2:operate01.searchLogic();break;
                case 3:operate01.modifyLogic();break;
                case 4:operate01.deleteLogic();break;
                case 5:operate01.orderLogic();break;
                case 6:System.exit(0);break;
            }
        }
    }
    // //启动电话本
    public static void main(String[] args) {
        App01 app01 = new App01();
        app01.start();
    }
}
